/*   1:    */ package WsrzEjbInterface;
/*   2:    */ 
/*   3:    */ import gov.sat.tax.fwsk.common.ConnectionPoolBean;
/*   4:    */ import gov.sat.tax.fwsk.rz.GSRzFpdklMxDataBean;
/*   5:    */ import gov.sat.tax.fwsk.rz.WsrzQyUserManageCmdBean;
/*   6:    */ import gov.sat.tax.fwsk.wlrz.CmpHandler;
/*   7:    */ import gov.sat.tax.fwsk.wlrz.InFpDataBean;
/*   8:    */ import gov.sat.tax.fwsk.wlrz.JmFpDataBean;
/*   9:    */ import gov.sat.tax.fwsk.wlrz.JmHandler;
/*  10:    */ import gov.sat.tax.fwsk.wlrz.JmjBean;
/*  11:    */ import gov.sat.tax.fwsk.wlrz.JmjPoolCycle;
/*  12:    */ import gov.sat.tax.fwsk.wlrz.TransRzParaBean;
/*  13:    */ import gov.sat.tax.fwsk.wlrz.WlrzConst;
/*  14:    */ import java.io.PrintStream;
/*  15:    */ import java.rmi.RemoteException;
/*  16:    */ import java.sql.Connection;
/*  17:    */ import java.sql.PreparedStatement;
/*  18:    */ import java.sql.ResultSet;
/*  19:    */ import java.sql.SQLException;
/*  20:    */ import java.text.SimpleDateFormat;
/*  21:    */ import java.util.ArrayList;
/*  22:    */ import java.util.GregorianCalendar;
/*  23:    */ import java.util.List;
/*  24:    */ import javax.ejb.CreateException;
/*  25:    */ import javax.ejb.SessionBean;
/*  26:    */ import javax.ejb.SessionContext;
/*  27:    */ 
/*  28:    */ public class hnWsrzInterfaceBean
/*  29:    */   implements SessionBean
/*  30:    */ {
/*  31:    */   private static final long serialVersionUID = -2582794413567200261L;
/*  32:    */   private SessionContext mySessionCtx;
/*  33:    */   
/*  34:    */   public SessionContext getSessionContext()
/*  35:    */   {
/*  36: 41 */     return this.mySessionCtx;
/*  37:    */   }
/*  38:    */   
/*  39:    */   public void setSessionContext(SessionContext ctx)
/*  40:    */   {
/*  41: 45 */     this.mySessionCtx = ctx;
/*  42:    */   }
/*  43:    */   
/*  44:    */   public void ejbCreate()
/*  45:    */     throws CreateException
/*  46:    */   {}
/*  47:    */   
/*  48:    */   public void ejbActivate() {}
/*  49:    */   
/*  50:    */   public void ejbPassivate() {}
/*  51:    */   
/*  52:    */   public void ejbRemove() {}
/*  53:    */   
/*  54:    */   public String dispXmlMessage(String nsr, String err_no, String title, String rzsj, String czyDm, String czyPwd)
/*  55:    */     throws RemoteException
/*  56:    */   {
/*  57: 62 */     String xml = "<?xml version=\"1.0\" encoding=\"GBK\"?><body><response><nsrsbh>" + 
/*  58: 63 */       nsr + 
/*  59: 64 */       "</nsrsbh><resno>" + 
/*  60: 65 */       err_no + 
/*  61: 66 */       "</resno><title>" + 
/*  62: 67 */       title + 
/*  63: 68 */       "</title><rzsj>" + rzsj + "</rzsj></response></body>";
/*  64: 69 */     return xml;
/*  65:    */   }
/*  66:    */   
/*  67:    */   public String getRdDate(Connection con, String nsr)
/*  68:    */     throws SQLException
/*  69:    */   {
/*  70: 73 */     PreparedStatement stmt = null;
/*  71: 74 */     String sqls = "";
/*  72: 75 */     String rds = "no";
/*  73:    */     try
/*  74:    */     {
/*  75: 78 */       if (con == null)
/*  76:    */       {
/*  77: 79 */         System.out.println("[WARN] 开票日期和认定日期比较数据库连接错");
/*  78: 80 */         return "error";
/*  79:    */       }
/*  80: 82 */       sqls = 
/*  81: 83 */         " select to_char(pz_rq,'yyyy-mm-dd') as rzdate from htjs.ht_ybnsr_dab where nsrsbh='" + nsr + "' and YXBZ='N' ";
/*  82:    */       
/*  83: 85 */       stmt = con.prepareStatement(sqls);
/*  84: 86 */       ResultSet rs = stmt.executeQuery();
/*  85: 88 */       while (rs.next()) {
/*  86: 89 */         rds = rs.getString("rzdate");
/*  87:    */       }
/*  88: 91 */       rs = null;
/*  89:    */     }
/*  90:    */     catch (SQLException e)
/*  91:    */     {
/*  92: 93 */       System.out.println("[WARN] 取认定日期出现异常：" + e.toString());
/*  93: 94 */       return "error";
/*  94:    */     }
/*  95:    */     finally
/*  96:    */     {
/*  97: 96 */       if (stmt != null) {
/*  98: 97 */         stmt.close();
/*  99:    */       }
/* 100:    */     }
/* 101: 96 */     if (stmt != null) {
/* 102: 97 */       stmt.close();
/* 103:    */     }
/* 104: 99 */     return rds;
/* 105:    */   }
/* 106:    */   
/* 107:    */   public int compDate(String inDate)
/* 108:    */   {
/* 109:103 */     GregorianCalendar curDate = null;
/* 110:104 */     GregorianCalendar validDate = null;
/* 111:105 */     int inYear = Integer.parseInt(inDate.substring(0, 4));
/* 112:106 */     int inMonth = Integer.parseInt(inDate.substring(5, 7));
/* 113:107 */     int inDay = Integer.parseInt(inDate.substring(8, 10));
/* 114:108 */     validDate = new GregorianCalendar(inYear, inMonth - 1, inDay);
/* 115:109 */     validDate.add(6, 1);
/* 116:110 */     curDate = new GregorianCalendar();
/* 117:111 */     if (curDate.before(validDate))
/* 118:    */     {
/* 119:112 */       curDate.add(5, 15);
/* 120:113 */       return curDate.after(validDate) ? 0 : 1;
/* 121:    */     }
/* 122:115 */     return -1;
/* 123:    */   }
/* 124:    */   
/* 125:    */   private GSRzFpdklMxDataBean setRzFpDklMx(InFpDataBean curFpData, String swjg_dm, String czydm, String czymc)
/* 126:    */   {
/* 127:122 */     java.sql.Date curDate = new java.sql.Date(System.currentTimeMillis());
/* 128:123 */     String strDate = curDate.toString();
/* 129:124 */     String cYear = strDate.substring(0, 4);
/* 130:125 */     String cMonth = strDate.substring(5, 7);
/* 131:126 */     int rzyf = (Integer.parseInt(cYear) - 1900) * 16 + 
/* 132:127 */       Integer.parseInt(cMonth);
/* 133:    */     
/* 134:129 */     String kpRq = curFpData.getKprq();
/* 135:130 */     String mYear = kpRq.substring(0, 2);
/* 136:131 */     String mMonth = kpRq.substring(2, 4);
/* 137:132 */     String mDay = kpRq.substring(4, 6);
/* 138:133 */     String curSKpRq = "20" + mYear + "-" + mMonth + "-" + mDay;
/* 139:    */     
/* 140:135 */     GSRzFpdklMxDataBean tmpBean = new GSRzFpdklMxDataBean();
/* 141:136 */     tmpBean.setRz_Nsrsbh(curFpData.getRz_nsrsbh());
/* 142:137 */     tmpBean.setFpdm(curFpData.getFp_dm());
/* 143:138 */     tmpBean.setFphm(curFpData.getFp_hm());
/* 144:139 */     tmpBean.setSwjg_Dm(swjg_dm);
/* 145:140 */     tmpBean.setRz_Nsrsbh(curFpData.getRz_nsrsbh());
/* 146:141 */     tmpBean.setRz_Fs(5);
/* 147:142 */     tmpBean.setRz_Jg(0);
/* 148:143 */     tmpBean.setJglb("0");
/* 149:144 */     tmpBean.setRz_Wxyy(0);
/* 150:145 */     tmpBean.setRz_Rgjz_Bz("N");
/* 151:    */     
/* 152:147 */     tmpBean.setRz_Yf(rzyf);
/* 153:148 */     tmpBean.setJskh("");
/* 154:    */     
/* 155:150 */     tmpBean.setFp_Kprq(curSKpRq);
/* 156:151 */     tmpBean.setGf_Nsrsbh(curFpData.getGf_nsrsbh());
/* 157:152 */     tmpBean.setXf_Nsrsbh(curFpData.getXf_nsrsbh());
/* 158:    */     
/* 159:154 */     tmpBean.setJe(curFpData.getFp_je());
/* 160:155 */     tmpBean.setSe(curFpData.getFp_se());
/* 161:156 */     tmpBean.setSl(Integer.parseInt(curFpData.getFp_sl()));
/* 162:158 */     if (curFpData.getQd_bz().equals("Y")) {
/* 163:159 */       tmpBean.setFp_Mw(curFpData.getFpmw().substring(0, 108));
/* 164:    */     } else {
/* 165:161 */       tmpBean.setFp_Mw(curFpData.getFpmw());
/* 166:    */     }
/* 167:164 */     tmpBean.setQd_bz(curFpData.getQd_bz());
/* 168:165 */     tmpBean.setWpmxs(curFpData.getHzInfoList());
/* 169:    */     
/* 170:    */ 
/* 171:168 */     tmpBean.setIs_Zh(curFpData.getIs_Zh());
/* 172:169 */     tmpBean.setZhLst(curFpData.getZhLst());
/* 173:    */     
/* 174:171 */     tmpBean.setCrcsum("");
/* 175:172 */     tmpBean.setCzy_Dm("server");
/* 176:173 */     tmpBean.setCzy_Mc(czymc);
/* 177:174 */     return tmpBean;
/* 178:    */   }
/* 179:    */   
/* 180:    */   public String getCurDateTime()
/* 181:    */   {
/* 182:178 */     java.sql.Date dt = new java.sql.Date(System.currentTimeMillis());
/* 183:179 */     SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
/* 184:180 */     String rz_sjstr = sdf.format(dt);
/* 185:181 */     return rz_sjstr;
/* 186:    */   }
/* 187:    */   
/* 188:    */   private String TransQuotePrintable(String mw)
/* 189:    */     throws Exception
/* 190:    */   {
/* 191:185 */     byte[] byteCode = (byte[])null;
/* 192:186 */     int count = 0;
/* 193:187 */     String tem = "";
/* 194:188 */     String tems = "";
/* 195:189 */     String srent = "";
/* 196:190 */     count = mw.length();
/* 197:191 */     byteCode = new byte[1];
/* 198:192 */     int j = 0;
/* 199:193 */     for (int i = 0; i < count;)
/* 200:    */     {
/* 201:194 */       tem = mw.substring(i, i + 1);
/* 202:195 */       if (tem.equals("%"))
/* 203:    */       {
/* 204:196 */         tems = mw.substring(i + 1, i + 3);
/* 205:197 */         i += 3;
/* 206:198 */         byteCode[0] = Integer.valueOf(tems, 16).byteValue();
/* 207:199 */         String str = new String(byteCode);
/* 208:200 */         srent = srent + str;
/* 209:201 */         j++;
/* 210:    */       }
/* 211:    */       else
/* 212:    */       {
/* 213:203 */         i++;
/* 214:204 */         tems = tem;
/* 215:205 */         srent = srent + tems;
/* 216:    */       }
/* 217:    */     }
/* 218:209 */     return srent;
/* 219:    */   }
/* 220:    */   
/* 221:    */   private String replaceInvlidCharacter(String original)
/* 222:    */   {
/* 223:213 */     String newString = original.replaceAll("\t", "");
/* 224:214 */     newString = newString.replaceAll("\t", "");
/* 225:215 */     newString = newString.replaceAll(" ", "");
/* 226:216 */     newString = newString.replaceAll("　", "");
/* 227:    */     
/* 228:218 */     return newString;
/* 229:    */   }
/* 230:    */   
/* 231:    */   private List getInHzInfoList(String sh, String gfmc, String xfmc, String mxdata)
/* 232:    */   {
/* 233:224 */     int mxcount = 0;
/* 234:    */     try
/* 235:    */     {
/* 236:226 */       mxcount = Integer.parseInt(mxdata.substring(0, 1));
/* 237:    */     }
/* 238:    */     catch (Exception E)
/* 239:    */     {
/* 240:228 */       System.out.println("物品明细数据异常 " + sh + " " + mxdata);
/* 241:229 */       return new ArrayList();
/* 242:    */     }
/* 243:231 */     String[] mxs = (mxdata.substring(1) + " ").split("¤");
/* 244:232 */     if (mxcount * 3 != mxs.length)
/* 245:    */     {
/* 246:233 */       System.out.println("物品明细数据异常 " + sh + " " + mxdata);
/* 247:234 */       return new ArrayList();
/* 248:    */     }
/* 249:236 */     List rtn = new ArrayList();
/* 250:237 */     rtn.add(replaceInvlidCharacter(gfmc));
/* 251:238 */     rtn.add(replaceInvlidCharacter(xfmc));
/* 252:239 */     rtn.add(mxdata.subSequence(0, 1));
/* 253:240 */     for (int i = 0; i < mxs.length; i++) {
/* 254:241 */       rtn.add(replaceInvlidCharacter(mxs[i].trim()));
/* 255:    */     }
/* 256:243 */     return rtn;
/* 257:    */   }
/* 258:    */   
/* 259:    */   private InFpDataBean makeFpDataBeanHy(TransRzParaBean rq)
/* 260:    */     throws Exception
/* 261:    */   {
/* 262:247 */     InFpDataBean tmpFpBean = new InFpDataBean();
/* 263:248 */     String in_Fpdm = "";String in_Fphm = "";String in_Kpsj = "";
/* 264:249 */     String in_GfTax = "";String in_XfTax = "";String in_Fpje = "0";String in_Fpse = "0";String fpmw = "";String in_Fpsl = "";
/* 265:250 */     String in_Year = "2000";String in_Month = "01";String in_Day = "01";
/* 266:    */     
/* 267:252 */     double fpje = 0.0D;double fpse = 0.0D;
/* 268:    */     
/* 269:254 */     String mw1 = rq.getParameter("miwen1") == null ? "" : rq
/* 270:255 */       .getParameter("miwen1");
/* 271:256 */     String mw2 = rq.getParameter("miwen2") == null ? "" : rq
/* 272:257 */       .getParameter("miwen2");
/* 273:258 */     String mw3 = rq.getParameter("miwen3") == null ? "" : rq
/* 274:259 */       .getParameter("miwen3");
/* 275:260 */     String mw4 = rq.getParameter("miwen4") == null ? "" : rq
/* 276:261 */       .getParameter("miwen4");
/* 277:    */     
/* 278:263 */     boolean hzfw = "hzfw".equals(rq.getParameter("action"));
/* 279:264 */     if (hzfw)
/* 280:    */     {
/* 281:266 */       fpmw = mw1;
/* 282:    */       
/* 283:268 */       tmpFpBean.setHzInfoList(getInHzInfoList(rq.getParameter("nsrsbh"), 
/* 284:269 */         mw2, mw3, mw4));
/* 285:    */     }
/* 286:    */     else
/* 287:    */     {
/* 288:271 */       fpmw = mw1 + mw2 + mw3 + mw4;
/* 289:272 */       mw2 = "";
/* 290:273 */       mw3 = "";
/* 291:274 */       mw4 = "";
/* 292:    */     }
/* 293:277 */     tmpFpBean.setQd_bz(hzfw ? "Y" : "N");
/* 294:    */     
/* 295:    */ 
/* 296:280 */     fpmw = TransQuotePrintable(fpmw);
/* 297:    */     
/* 298:282 */     in_Year = rq.getParameter("kpyear") == null ? "2001" : rq
/* 299:283 */       .getParameter("kpyear");
/* 300:284 */     in_Month = rq.getParameter("kpmonth") == null ? "01" : rq
/* 301:285 */       .getParameter("kpmonth");
/* 302:286 */     in_Day = rq.getParameter("kpday") == null ? "01" : rq
/* 303:287 */       .getParameter("kpday");
/* 304:288 */     in_Kpsj = in_Year.substring(2) + in_Month + in_Day;
/* 305:    */     
/* 306:290 */     in_Fpdm = rq.getParameter("fpdm") == null ? "" : rq
/* 307:291 */       .getParameter("fpdm");
/* 308:292 */     in_Fphm = rq.getParameter("fphm") == null ? "" : rq
/* 309:293 */       .getParameter("fphm");
/* 310:294 */     in_GfTax = rq.getParameter("gsbh") == null ? "" : rq
/* 311:295 */       .getParameter("gsbh");
/* 312:296 */     in_XfTax = rq.getParameter("xsbh") == null ? "" : rq
/* 313:297 */       .getParameter("xsbh");
/* 314:298 */     in_Fpje = rq.getParameter("jine") == null ? "0" : rq
/* 315:299 */       .getParameter("jine");
/* 316:300 */     in_Fpse = rq.getParameter("shuie") == null ? "0" : rq
/* 317:301 */       .getParameter("shuie");
/* 318:302 */     in_Fpsl = "17";
/* 319:    */     
/* 320:304 */     String tmpnsh = rq.getParameter("nsrsbh") == null ? "" : rq
/* 321:305 */       .getParameter("nsrsbh");
/* 322:    */     try
/* 323:    */     {
/* 324:307 */       fpje = Double.parseDouble(in_Fpje);
/* 325:308 */       fpse = Double.parseDouble(in_Fpse);
/* 326:    */     }
/* 327:    */     catch (Exception e)
/* 328:    */     {
/* 329:310 */       fpje = 0.0D;
/* 330:311 */       fpse = 0.0D;
/* 331:312 */       System.out.println("[WARN] 提交的金额、税额数据非法, 请检查: " + in_Fpje + ", " + 
/* 332:313 */         in_Fpse);
/* 333:    */     }
/* 334:315 */     tmpFpBean.setRz_nsrsbh(tmpnsh);
/* 335:316 */     tmpFpBean.setGf_nsrsbh(in_GfTax);
/* 336:317 */     tmpFpBean.setXf_nsrsbh(in_XfTax);
/* 337:318 */     tmpFpBean.setFp_dm(in_Fpdm);
/* 338:319 */     tmpFpBean.setFp_hm(in_Fphm);
/* 339:320 */     tmpFpBean.setKprq(in_Kpsj);
/* 340:321 */     tmpFpBean.setFp_je(fpje);
/* 341:322 */     tmpFpBean.setFp_se(fpse);
/* 342:323 */     tmpFpBean.setFp_sl(in_Fpsl);
/* 343:324 */     tmpFpBean.setFpmw(fpmw);
/* 344:325 */     return tmpFpBean;
/* 345:    */   }
/* 346:    */   
/* 347:    */   public static void main(String[] args)
/* 348:    */   {
/* 349:329 */     hnWsrzInterfaceBean hn = new hnWsrzInterfaceBean();
/* 350:    */     try
/* 351:    */     {
/* 352:331 */       hn.Invoice_Auth("HY5353b901000011008a01000000000000000000000000000004f77c95489e29399df258e3c7fda1055f79ab5f5a162d73582ed408b005b10006ab5761e570ceb8452de0992cbea53b4b71b97427f0bdb6d87be74841e7bac5f2a6c4581534a8ef6e857494369de7b30e9cb0389998c3aca08f1106a87553260ae5d404701dcb6729d87c0d1f1bed5698c6df3ff5501d9571b8ccc54c34c19ab27f8d7c71254dbae10e9735381a58f12ee7ce014cdf939520826a7acec33436357e9a2a981c4d6229c30b18701bc4ec90cae2f6c40691d17ac60d35c0fc7f3621b504bb14321c94c85d67b8037ef6c16e8748efed425dd61701b1d1b3c626160b3989de93478283b18c21262f65848dce6f1f786b73f8dcd2fffbaf4c5a154b166afb014f6609896f26b83ebfde924a8f1f4f2e0445d09a57b116a878e88d5603dbdcb2991241ba30f83e6d64bf2dba0edc7a9e31d8da134f41232e33c5cb9638398bc2323e0d22f506ed55dad913f1ef4fbad7f39a8e1e485c2e19baab92ed3e8afc6675a7c1c3071aee46dba1ac85ad3821e6ff4f7ee37016fe7e00dd67143f8426b17f764fe651f23dc1806e17a4c310dee10274eefde709432ea766a49021");
/* 353:    */     }
/* 354:    */     catch (RemoteException e)
/* 355:    */     {
/* 356:333 */       e.printStackTrace();
/* 357:    */     }
/* 358:    */     catch (SQLException e)
/* 359:    */     {
/* 360:335 */       e.printStackTrace();
/* 361:    */     }
/* 362:    */   }
/* 363:    */   
/* 364:    */   public String Invoice_Auth(String cryptograph)
/* 365:    */     throws SQLException, RemoteException
/* 366:    */   {
/* 367:341 */     JmjPoolCycle pool = JmjPoolCycle.createInstance();
/* 368:342 */     String result_xml = "<?xml version=\"1.0\" encoding=\"GBK\"?><body><response><nsrsbh></nsrsbh><resno></resno><title></title><rzsj></rzsj></response></body>";
/* 369:343 */     boolean security = true;
/* 370:344 */     String swjg_dm = "";
/* 371:345 */     String nsrsbh = "";String czyDm = "";String czyMc = "";String czyPwd = "";
/* 372:    */     
/* 373:347 */     InFpDataBean inFpData = null;
/* 374:348 */     JmFpDataBean jmFpData = null;
/* 375:349 */     long ulms = System.currentTimeMillis();
/* 376:350 */     boolean hzfw = false;
/* 377:351 */     String rsj = null;
/* 378:352 */     String fpzl = "YB";
/* 379:    */     
/* 380:354 */     boolean isNewClient = false;
/* 381:    */     
/* 382:    */ 
/* 383:357 */     String gdzc = "";
/* 384:    */     
/* 385:359 */     TransRzParaBean ts = null;
/* 386:361 */     if (cryptograph != null)
/* 387:    */     {
/* 388:362 */       if (cryptograph.startsWith("HY"))
/* 389:    */       {
/* 390:363 */         cryptograph = cryptograph.substring(2);
/* 391:364 */         ts = new TransRzParaBean("");
/* 392:    */       }
/* 393:366 */       else if (cryptograph.length() > 580)
/* 394:    */       {
/* 395:367 */         ts = new TransRzParaBean(88);
/* 396:    */       }
/* 397:    */       else
/* 398:    */       {
/* 399:369 */         ts = new TransRzParaBean();
/* 400:    */       }
/* 401:371 */       ts.doDecrypt(cryptograph);
/* 402:372 */       if ("hzfw".equals(ts.getParameter("action")))
/* 403:    */       {
/* 404:373 */         hzfw = true;
/* 405:374 */         System.out.println("[INFO] 汉字防伪发票认证");
/* 406:    */       }
/* 407:    */       else
/* 408:    */       {
/* 409:376 */         System.out.println("[INFO]非汉字防伪发票认证");
/* 410:    */       }
/* 411:    */     }
/* 412:    */     try
/* 413:    */     {
/* 414:381 */       nsrsbh = ts.getParameter("nsrsbh") != null ? ts
/* 415:382 */         .getParameter("nsrsbh") : "";
/* 416:383 */       czyDm = "ejb";
/* 417:384 */       czyPwd = "server";
/* 418:    */     }
/* 419:    */     catch (Exception e)
/* 420:    */     {
/* 421:386 */       result_xml = dispXmlMessage(nsrsbh, "800", "接口参数异常！", 
/* 422:387 */         getCurDateTime(), "other", "other");
/* 423:388 */       System.out.println("[WARN] 接口参数异常: " + e.toString());
/* 424:389 */       return result_xml;
/* 425:    */     }
/* 426:392 */     ConnectionPoolBean handler = null;
/* 427:393 */     Connection conn = null;
/* 428:394 */     JmjBean jmj = null;
/* 429:    */     try
/* 430:    */     {
/* 431:396 */       handler = ConnectionPoolBean.getHandle();
/* 432:397 */       conn = handler.getConnection();
/* 433:399 */       if (conn == null)
/* 434:    */       {
/* 435:400 */         result_xml = dispXmlMessage(nsrsbh, "500", "数据库连接错误，不能进行认证操作！", 
/* 436:401 */           getCurDateTime(), czyDm, czyPwd);
/* 437:402 */         System.out.println("[WARN] 数据库连接错误: " + nsrsbh + ", 操作员:" + 
/* 438:403 */           czyDm + ", 登录时间:" + getCurDateTime());
/* 439:    */         WsrzQyUserManageCmdBean curCzyDB;
/* 440:404 */         return result_xml;
/* 441:    */       }
/* 442:408 */       WsrzQyUserManageCmdBean curCzyDB = new WsrzQyUserManageCmdBean();
/* 443:409 */       curCzyDB = WsrzQyUserManageCmdBean.doQueryByCzydm(conn, nsrsbh, 
/* 444:410 */         czyDm, czyPwd, WlrzConst.isNeedPwd());
/* 445:411 */       if (curCzyDB == null)
/* 446:    */       {
/* 447:412 */         result_xml = dispXmlMessage(nsrsbh, "510", "操作员非法，不能进行认证操作！", 
/* 448:413 */           getCurDateTime(), czyDm, czyPwd);
/* 449:414 */         System.out.println("[WARN] 非法操作员: " + nsrsbh + ", 操作员:" + czyDm + 
/* 450:415 */           ", 登录时间:" + getCurDateTime());
/* 451:416 */         return result_xml;
/* 452:    */       }
/* 453:    */       WsrzQyUserManageCmdBean curCzyDB;
/* 454:419 */       czyMc = "newServerEjb";
/* 455:420 */       swjg_dm = curCzyDB.getSwjg_dm();
/* 456:    */       
/* 457:422 */       String active = curCzyDB.getYxbz();
/* 458:423 */       if (!active.equals("Y"))
/* 459:    */       {
/* 460:424 */         result_xml = dispXmlMessage(nsrsbh, "520", 
/* 461:425 */           "当前纳税人认证功能已被税务机关禁用，请与税务机关联系！", getCurDateTime(), czyDm, 
/* 462:426 */           czyPwd);
/* 463:427 */         System.out.println("[INFO] 纳税人识别号:" + nsrsbh + "已被税务机关禁用");
/* 464:428 */         return result_xml;
/* 465:    */       }
/* 466:    */       String active;
/* 467:    */       WsrzQyUserManageCmdBean curCzyDB;
/* 468:431 */       int i_validDate = -1;
/* 469:432 */       i_validDate = compDate(curCzyDB.getJzrq());
/* 470:433 */       if (i_validDate == -1)
/* 471:    */       {
/* 472:434 */         result_xml = dispXmlMessage(nsrsbh, "525", "用户已超出有效期！", 
/* 473:435 */           getCurDateTime(), czyDm, czyPwd);
/* 474:436 */         System.out.println("[WARN] 525过期用户: " + nsrsbh + ", 操作员:" + 
/* 475:437 */           czyDm + ", 登录时间:" + getCurDateTime());
/* 476:438 */         return result_xml;
/* 477:    */       }
/* 478:    */       int i_validDate;
/* 479:    */       String active;
/* 480:    */       WsrzQyUserManageCmdBean curCzyDB;
/* 481:441 */       String fpmw = "";
/* 482:    */       
/* 483:443 */       String fpid = ts.getParameter("fpid");
/* 484:    */       
/* 485:445 */       String mw1 = ts.getParameter("miwen1") == null ? "" : ts
/* 486:446 */         .getParameter("miwen1");
/* 487:447 */       String mw2 = ts.getParameter("miwen2") == null ? "" : ts
/* 488:448 */         .getParameter("miwen2");
/* 489:449 */       String mw3 = ts.getParameter("miwen3") == null ? "" : ts
/* 490:450 */         .getParameter("miwen3");
/* 491:451 */       String mw4 = ts.getParameter("miwen4") == null ? "" : ts
/* 492:452 */         .getParameter("miwen4");
/* 493:454 */       if (hzfw)
/* 494:    */       {
/* 495:455 */         fpmw = mw1;
/* 496:    */       }
/* 497:    */       else
/* 498:    */       {
/* 499:457 */         fpmw = mw1 + mw2 + mw3 + mw4;
/* 500:458 */         mw2 = "";
/* 501:459 */         mw3 = "";
/* 502:460 */         mw4 = "";
/* 503:    */       }
/* 504:462 */       fpmw = TransQuotePrintable(fpmw);
/* 505:    */       
/* 506:464 */       gdzc = ts.getParameter("gdzc");
/* 507:465 */       if (gdzc != null) {
/* 508:466 */         if (gdzc.equals("0")) {
/* 509:467 */           gdzc = "Y";
/* 510:468 */         } else if (gdzc.equals("1")) {
/* 511:469 */           gdzc = "N";
/* 512:    */         }
/* 513:    */       }
/* 514:472 */       inFpData = makeFpDataBeanHy(ts);
/* 515:473 */       if ((hzfw) && (
/* 516:474 */         (inFpData.getHzInfoList() == null) || 
/* 517:475 */         (inFpData.getHzInfoList().size() == 0)))
/* 518:    */       {
/* 519:476 */         result_xml = dispXmlMessage(nsrsbh, "1000", "物品格式异常！", 
/* 520:477 */           getCurDateTime(), czyDm, czyPwd);
/* 521:478 */         System.out.println("[ERROR]汉字防伪发票，未上传物品信息 nsr:" + nsrsbh + 
/* 522:479 */           " fpdm:" + inFpData.getFp_dm() + " fphm:" + 
/* 523:480 */           inFpData.getFp_hm());
/* 524:481 */         return result_xml;
/* 525:    */       }
/* 526:    */       String mw4;
/* 527:    */       String mw3;
/* 528:    */       String mw2;
/* 529:    */       String mw1;
/* 530:    */       String fpid;
/* 531:    */       String fpmw;
/* 532:    */       int i_validDate;
/* 533:    */       String active;
/* 534:    */       WsrzQyUserManageCmdBean curCzyDB;
/* 535:483 */       if (!nsrsbh.equals(inFpData.getGf_nsrsbh()))
/* 536:    */       {
/* 537:484 */         result_xml = dispXmlMessage(nsrsbh, "610", 
/* 538:485 */           "提交纳税人与购方纳税人不符,不能进行网上认证。", getCurDateTime(), czyDm, 
/* 539:486 */           czyPwd);
/* 540:487 */         System.out.println("[WARN] 购方不符: " + nsrsbh + ", 操作员:" + czyDm + 
/* 541:488 */           ", 登录时间:" + getCurDateTime());
/* 542:489 */         return result_xml;
/* 543:    */       }
/* 544:    */       String mw4;
/* 545:    */       String mw3;
/* 546:    */       String mw2;
/* 547:    */       String mw1;
/* 548:    */       String fpid;
/* 549:    */       String fpmw;
/* 550:    */       int i_validDate;
/* 551:    */       String active;
/* 552:    */       WsrzQyUserManageCmdBean curCzyDB;
/* 553:493 */       int jmStatus = 0;
/* 554:494 */       String rzSj = "";
/* 555:495 */       jmFpData = new JmFpDataBean();
/* 556:496 */       JmHandler curJmHandler = new JmHandler();
/* 557:    */       
/* 558:498 */       jmj = pool.getJmj();
/* 559:499 */       String jmjip = "";
/* 560:500 */       if (jmj != null)
/* 561:    */       {
/* 562:501 */         jmjip = jmj.getJmjIP();
/* 563:502 */         if (jmj.isServer()) {
/* 564:503 */           curJmHandler.doJmProc_Jms(fpmw, jmjip, hzfw);
/* 565:    */         } else {
/* 566:505 */           curJmHandler.doJmProc(nsrsbh, fpmw, fpid, jmjip, hzfw);
/* 567:    */         }
/* 568:507 */         pool.releaseJmj(jmj);
/* 569:    */       }
/* 570:    */       else
/* 571:    */       {
/* 572:509 */         curJmHandler.setStatus(530);
/* 573:    */       }
/* 574:513 */       jmStatus = curJmHandler.getStatus();
/* 575:515 */       switch (jmStatus)
/* 576:    */       {
/* 577:    */       case 0: 
/* 578:518 */         jmFpData = curJmHandler.getCurJmData();
/* 579:    */         
/* 580:520 */         int wxyy = 0;
/* 581:521 */         int rzjg = 0;
/* 582:522 */         int save_Code = 0;
/* 583:523 */         int i_err_no = jmFpData.getErrNo();
/* 584:529 */         switch (i_err_no)
/* 585:    */         {
/* 586:    */         case 0: 
/* 587:    */         case 1000: 
/* 588:    */         case 1001: 
/* 589:    */         case 1002: 
/* 590:535 */           String rddate = getRdDate(conn, nsrsbh);
/* 591:536 */           if ((rddate.equals("no")) || (rddate.equals("error")))
/* 592:    */           {
/* 593:537 */             result_xml = dispXmlMessage(nsrsbh, "525", 
/* 594:538 */               "取得企业认定日期出现异常！", getCurDateTime(), czyDm, 
/* 595:539 */               czyPwd);
/* 596:540 */             System.out.println("[WARN] 取得企业认定日期出现异常: " + nsrsbh + 
/* 597:541 */               ", 操作员:" + czyDm + ", 登录时间:" + 
/* 598:542 */               getCurDateTime());
/* 599:543 */             return result_xml;
/* 600:    */           }
/* 601:    */           String rddate;
/* 602:    */           int i_err_no;
/* 603:    */           int save_Code;
/* 604:    */           String jmjip;
/* 605:    */           JmHandler curJmHandler;
/* 606:    */           String rzSj;
/* 607:    */           int jmStatus;
/* 608:    */           String mw4;
/* 609:    */           String mw3;
/* 610:    */           String mw2;
/* 611:    */           String mw1;
/* 612:    */           String fpid;
/* 613:    */           String fpmw;
/* 614:    */           int i_validDate;
/* 615:    */           String active;
/* 616:    */           WsrzQyUserManageCmdBean curCzyDB;
/* 617:545 */           java.sql.Date rdDate = java.sql.Date.valueOf(rddate);
/* 618:    */           
/* 619:547 */           CmpHandler cmpHandler = new CmpHandler();
/* 620:    */           
/* 621:549 */           cmpHandler.setNewClient(isNewClient);
/* 622:    */           
/* 623:551 */           cmpHandler.setInData(inFpData);
/* 624:552 */           cmpHandler.setJmData(jmFpData);
/* 625:553 */           cmpHandler.setRdDate(rdDate);
/* 626:554 */           cmpHandler.doCmpProc();
/* 627:    */           
/* 628:556 */           inFpData.setIs_Zh(jmFpData.getIs_Zh());
/* 629:557 */           inFpData.setZhLst(jmFpData.getZhLst());
/* 630:558 */           inFpData.setHzInfoList(jmFpData.getHzInfoList());
/* 631:    */           
/* 632:    */ 
/* 633:561 */           int wxyy = cmpHandler.getWxyy();
/* 634:562 */           int rzjg = cmpHandler.getRzjg();
/* 635:563 */           String err_subType = null;
/* 636:565 */           if ((wxyy == -1) && (rzjg == -5))
/* 637:    */           {
/* 638:566 */             result_xml = dispXmlMessage(nsrsbh, "670", 
/* 639:567 */               "取得认定资格前开具的发票。不能进行认证", getCurDateTime(), czyDm, 
/* 640:568 */               czyPwd);
/* 641:569 */             System.out.println("[WARN] 认定前发票: " + nsrsbh + ", 操作员:" + 
/* 642:570 */               czyDm + ", 登录时间:" + getCurDateTime());
/* 643:571 */             return result_xml;
/* 644:    */           }
/* 645:    */           String err_subType;
/* 646:    */           CmpHandler cmpHandler;
/* 647:    */           java.sql.Date rdDate;
/* 648:    */           String rddate;
/* 649:    */           int i_err_no;
/* 650:    */           int save_Code;
/* 651:    */           int rzjg;
/* 652:    */           int wxyy;
/* 653:    */           String jmjip;
/* 654:    */           JmHandler curJmHandler;
/* 655:    */           String rzSj;
/* 656:    */           int jmStatus;
/* 657:    */           String mw4;
/* 658:    */           String mw3;
/* 659:    */           String mw2;
/* 660:    */           String mw1;
/* 661:    */           String fpid;
/* 662:    */           String fpmw;
/* 663:    */           int i_validDate;
/* 664:    */           String active;
/* 665:    */           WsrzQyUserManageCmdBean curCzyDB;
/* 666:575 */           if ((wxyy == -1) && ((rzjg == -6) || (rzjg == -7)))
/* 667:    */           {
/* 668:576 */             result_xml = dispXmlMessage(nsrsbh, "660", 
/* 669:577 */               "超过抵扣期限的发票。不能进行认证", getCurDateTime(), czyDm, 
/* 670:578 */               czyPwd);
/* 671:579 */             System.out.println("[WARN] 超过抵扣期限: " + nsrsbh + 
/* 672:580 */               ", 操作员:" + czyDm + ", 登录时间:" + 
/* 673:581 */               getCurDateTime());
/* 674:582 */             return result_xml;
/* 675:    */           }
/* 676:    */           String err_subType;
/* 677:    */           CmpHandler cmpHandler;
/* 678:    */           java.sql.Date rdDate;
/* 679:    */           String rddate;
/* 680:    */           int i_err_no;
/* 681:    */           int save_Code;
/* 682:    */           int rzjg;
/* 683:    */           int wxyy;
/* 684:    */           String jmjip;
/* 685:    */           JmHandler curJmHandler;
/* 686:    */           String rzSj;
/* 687:    */           int jmStatus;
/* 688:    */           String mw4;
/* 689:    */           String mw3;
/* 690:    */           String mw2;
/* 691:    */           String mw1;
/* 692:    */           String fpid;
/* 693:    */           String fpmw;
/* 694:    */           int i_validDate;
/* 695:    */           String active;
/* 696:    */           WsrzQyUserManageCmdBean curCzyDB;
/* 697:585 */           inFpData.setFp_sl(jmFpData.getFp_sl());
/* 698:586 */           if (rzjg == 0)
/* 699:    */           {
/* 700:587 */             inFpData.setFp_je(jmFpData.getFp_je());
/* 701:588 */             inFpData.setFp_se(jmFpData.getFp_se());
/* 702:    */             
/* 703:590 */             inFpData.setHzInfoList(jmFpData.getHzInfoList());
/* 704:591 */             err_subType = "0";
/* 705:    */           }
/* 706:594 */           else if ((!inFpData.getFp_dm().equals(jmFpData.getFp_dm())) || 
/* 707:595 */             (!inFpData.getFp_hm().equals(
/* 708:596 */             jmFpData.getFp_hm())) || 
/* 709:597 */             (!inFpData.getGf_nsrsbh().equals(
/* 710:598 */             jmFpData.getGf_nsrsbh())))
/* 711:    */           {
/* 712:599 */             err_subType = "1";
/* 713:    */           }
/* 714:    */           else
/* 715:    */           {
/* 716:601 */             err_subType = "2";
/* 717:    */           }
/* 718:    */           String err_subType;
/* 719:    */           String rzSj;
/* 720:    */           int save_Code;
/* 721:    */           int rzjg;
/* 722:608 */           if (rzjg == 0)
/* 723:    */           {
/* 724:610 */             GSRzFpdklMxDataBean tmpFpDklMxDataBean = new GSRzFpdklMxDataBean();
/* 725:    */             
/* 726:612 */             tmpFpDklMxDataBean = setRzFpDklMx(inFpData, swjg_dm, 
/* 727:613 */               czyDm, czyMc);
/* 728:    */             
/* 729:    */ 
/* 730:    */ 
/* 731:617 */             double se = inFpData.getFp_se();
/* 732:620 */             if (jmFpData.getErrNo() == 0)
/* 733:    */             {
/* 734:621 */               tmpFpDklMxDataBean.setFp_lb("YB");
/* 735:    */             }
/* 736:622 */             else if ((jmFpData.getErrNo() == 1001) || (se == 0.0D))
/* 737:    */             {
/* 738:623 */               System.out.println("[INFO] 属于废旧物资发票");
/* 739:624 */               tmpFpDklMxDataBean.setFp_lb("FJ");
/* 740:625 */               fpzl = "FJ";
/* 741:    */             }
/* 742:628 */             if (jmFpData.getErrNo() == 1002)
/* 743:    */             {
/* 744:629 */               System.out.println("[INFO] 属于普通发票");
/* 745:    */               
/* 746:631 */               java.sql.Date rz_sj = null;
/* 747:632 */               rz_sj = new java.sql.Date(
/* 748:633 */                 System.currentTimeMillis());
/* 749:634 */               SimpleDateFormat sdf = new SimpleDateFormat(
/* 750:635 */                 "yyyy-MM-dd HH:mm:ss");
/* 751:636 */               rzSj = sdf.format(rz_sj);
/* 752:    */               
/* 753:    */ 
/* 754:    */ 
/* 755:640 */               tmpFpDklMxDataBean.setFp_lb("P1");
/* 756:641 */               save_Code = tmpFpDklMxDataBean.doInserPvoice(conn);
/* 757:642 */               fpzl = "P1";
/* 758:643 */               String r_je = Double.toString(jmFpData.getFp_je());
/* 759:644 */               String r_se = Double.toString(jmFpData.getFp_se());
/* 760:645 */               rsj = rzSj + " " + r_je + " " + r_se;
/* 761:646 */               rzSj = rzSj + " " + r_je + " " + r_se + " " + 
/* 762:647 */                 jmFpData.getFp_dm() + " " + 
/* 763:648 */                 jmFpData.getFp_hm();
/* 764:651 */               if (save_Code == 1)
/* 765:    */               {
/* 766:652 */                 System.out.println("[INFO] 普票验证通过:" + nsrsbh + 
/* 767:653 */                   ", " + rzSj + "(" + ulms + "ms)");
/* 768:654 */                 result_xml = dispXmlMessage(nsrsbh, "1002", 
/* 769:655 */                   "认证相符(普票)", rzSj, czyDm, czyPwd);
/* 770:656 */                 return result_xml;
/* 771:    */               }
/* 772:    */               String r_se;
/* 773:    */               String r_je;
/* 774:    */               SimpleDateFormat sdf;
/* 775:    */               java.sql.Date rz_sj;
/* 776:    */               double se;
/* 777:    */               GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 778:    */               String err_subType;
/* 779:    */               CmpHandler cmpHandler;
/* 780:    */               java.sql.Date rdDate;
/* 781:    */               String rddate;
/* 782:    */               int i_err_no;
/* 783:    */               int save_Code;
/* 784:    */               int rzjg;
/* 785:    */               int wxyy;
/* 786:    */               String jmjip;
/* 787:    */               JmHandler curJmHandler;
/* 788:    */               String rzSj;
/* 789:    */               int jmStatus;
/* 790:    */               String mw4;
/* 791:    */               String mw3;
/* 792:    */               String mw2;
/* 793:    */               String mw1;
/* 794:    */               String fpid;
/* 795:    */               String fpmw;
/* 796:    */               int i_validDate;
/* 797:    */               String active;
/* 798:    */               WsrzQyUserManageCmdBean curCzyDB;
/* 799:657 */               if (save_Code == 2)
/* 800:    */               {
/* 801:658 */                 rzSj = tmpFpDklMxDataBean.getDs_swjg_dm();
/* 802:    */                 
/* 803:660 */                 System.out.println("[INFO] 普票重复认证:" + nsrsbh + 
/* 804:661 */                   "," + rzSj + "(" + ulms + "ms)");
/* 805:662 */                 result_xml = dispXmlMessage(nsrsbh, "1200", 
/* 806:663 */                   "重复认证(普票)", rzSj, czyDm, czyPwd);
/* 807:664 */                 return result_xml;
/* 808:    */               }
/* 809:    */               String r_se;
/* 810:    */               String r_je;
/* 811:    */               SimpleDateFormat sdf;
/* 812:    */               java.sql.Date rz_sj;
/* 813:    */               double se;
/* 814:    */               GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 815:    */               String err_subType;
/* 816:    */               CmpHandler cmpHandler;
/* 817:    */               java.sql.Date rdDate;
/* 818:    */               String rddate;
/* 819:    */               int i_err_no;
/* 820:    */               int save_Code;
/* 821:    */               int rzjg;
/* 822:    */               int wxyy;
/* 823:    */               String jmjip;
/* 824:    */               JmHandler curJmHandler;
/* 825:    */               String rzSj;
/* 826:    */               int jmStatus;
/* 827:    */               String mw4;
/* 828:    */               String mw3;
/* 829:    */               String mw2;
/* 830:    */               String mw1;
/* 831:    */               String fpid;
/* 832:    */               String fpmw;
/* 833:    */               int i_validDate;
/* 834:    */               String active;
/* 835:    */               WsrzQyUserManageCmdBean curCzyDB;
/* 836:666 */               System.out.println("[INFO] 普票验证写数据库出现异常:" + 
/* 837:667 */                 nsrsbh + "," + rsj + "(" + ulms + 
/* 838:668 */                 "ms)");
/* 839:669 */               result_xml = dispXmlMessage(nsrsbh, "900", 
/* 840:670 */                 "其它异常", rzSj, czyDm, czyPwd);
/* 841:671 */               return result_xml;
/* 842:    */             }
/* 843:    */             double se;
/* 844:    */             GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 845:    */             String err_subType;
/* 846:    */             CmpHandler cmpHandler;
/* 847:    */             java.sql.Date rdDate;
/* 848:    */             String rddate;
/* 849:    */             int i_err_no;
/* 850:    */             int rzjg;
/* 851:    */             int wxyy;
/* 852:    */             String jmjip;
/* 853:    */             JmHandler curJmHandler;
/* 854:    */             String rzSj;
/* 855:    */             int jmStatus;
/* 856:    */             String mw4;
/* 857:    */             String mw3;
/* 858:    */             String mw2;
/* 859:    */             String mw1;
/* 860:    */             String fpid;
/* 861:    */             String fpmw;
/* 862:    */             int i_validDate;
/* 863:    */             String active;
/* 864:    */             WsrzQyUserManageCmdBean curCzyDB;
/* 865:676 */             if (WlrzConst.isSupGDZC()) {
/* 866:677 */               tmpFpDklMxDataBean.setGdzc_bz(gdzc);
/* 867:    */             } else {
/* 868:679 */               tmpFpDklMxDataBean.setGdzc_bz("N");
/* 869:    */             }
/* 870:682 */             int save_Code = tmpFpDklMxDataBean.doInsert(conn);
/* 871:    */             
/* 872:684 */             System.out.println("[INFO] 保存返回结果.." + save_Code);
/* 873:    */             
/* 874:686 */             ulms = System.currentTimeMillis() - ulms;
/* 875:    */             GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 876:    */             int save_Code;
/* 877:    */             String rzSj;
/* 878:688 */             if (save_Code == 1)
/* 879:    */             {
/* 880:690 */               java.util.Date sj = tmpFpDklMxDataBean.getRz_Sj();
/* 881:    */               
/* 882:692 */               SimpleDateFormat sdf = new SimpleDateFormat(
/* 883:693 */                 "yyyy-MM-dd HH:mm:ss");
/* 884:694 */               rzSj = sdf.format(sj);
/* 885:    */               
/* 886:696 */               String rtn_fpje = Double.toString(jmFpData
/* 887:697 */                 .getFp_je());
/* 888:698 */               String rtn_fpse = Double.toString(jmFpData
/* 889:699 */                 .getFp_se());
/* 890:701 */               if (rtn_fpje != null) {
/* 891:703 */                 rzSj = 
/* 892:    */                 
/* 893:705 */                   rzSj + " " + rtn_fpje + " " + rtn_fpse + " " + jmFpData.getFp_dm() + " " + jmFpData.getFp_hm();
/* 894:    */               }
/* 895:707 */               if (tmpFpDklMxDataBean.getRz_Jg() == 3)
/* 896:    */               {
/* 897:708 */                 result_xml = dispXmlMessage(nsrsbh, "680", 
/* 898:709 */                   "解密成功，属于失控发票", rzSj, czyDm, czyPwd);
/* 899:710 */                 return result_xml;
/* 900:    */               }
/* 901:    */               String rtn_fpse;
/* 902:    */               String rtn_fpje;
/* 903:    */               SimpleDateFormat sdf;
/* 904:    */               java.util.Date sj;
/* 905:    */               double se;
/* 906:    */               GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 907:    */               String err_subType;
/* 908:    */               CmpHandler cmpHandler;
/* 909:    */               java.sql.Date rdDate;
/* 910:    */               String rddate;
/* 911:    */               int i_err_no;
/* 912:    */               int save_Code;
/* 913:    */               int rzjg;
/* 914:    */               int wxyy;
/* 915:    */               String jmjip;
/* 916:    */               JmHandler curJmHandler;
/* 917:    */               String rzSj;
/* 918:    */               int jmStatus;
/* 919:    */               String mw4;
/* 920:    */               String mw3;
/* 921:    */               String mw2;
/* 922:    */               String mw1;
/* 923:    */               String fpid;
/* 924:    */               String fpmw;
/* 925:    */               int i_validDate;
/* 926:    */               String active;
/* 927:    */               WsrzQyUserManageCmdBean curCzyDB;
/* 928:715 */               if (fpzl.equals("YB"))
/* 929:    */               {
/* 930:716 */                 result_xml = dispXmlMessage(nsrsbh, "0", 
/* 931:717 */                   "解密成功，比对正确(增值税)", rzSj, czyDm, 
/* 932:718 */                   czyPwd);
/* 933:719 */                 System.out.println("[INFO] 认证通过(增值税):" + 
/* 934:720 */                   nsrsbh + "," + 
/* 935:721 */                   tmpFpDklMxDataBean.getFpdm() + 
/* 936:722 */                   "-" + 
/* 937:723 */                   tmpFpDklMxDataBean.getFphm() + 
/* 938:724 */                   "," + rzSj + "(" + ulms + "ms)");
/* 939:725 */                 return result_xml;
/* 940:    */               }
/* 941:    */               String rtn_fpse;
/* 942:    */               String rtn_fpje;
/* 943:    */               SimpleDateFormat sdf;
/* 944:    */               java.util.Date sj;
/* 945:    */               double se;
/* 946:    */               GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 947:    */               String err_subType;
/* 948:    */               CmpHandler cmpHandler;
/* 949:    */               java.sql.Date rdDate;
/* 950:    */               String rddate;
/* 951:    */               int i_err_no;
/* 952:    */               int save_Code;
/* 953:    */               int rzjg;
/* 954:    */               int wxyy;
/* 955:    */               String jmjip;
/* 956:    */               JmHandler curJmHandler;
/* 957:    */               String rzSj;
/* 958:    */               int jmStatus;
/* 959:    */               String mw4;
/* 960:    */               String mw3;
/* 961:    */               String mw2;
/* 962:    */               String mw1;
/* 963:    */               String fpid;
/* 964:    */               String fpmw;
/* 965:    */               int i_validDate;
/* 966:    */               String active;
/* 967:    */               WsrzQyUserManageCmdBean curCzyDB;
/* 968:726 */               if (fpzl.equals("FJ"))
/* 969:    */               {
/* 970:727 */                 result_xml = dispXmlMessage(nsrsbh, "1001", 
/* 971:728 */                   "解密成功，比对正确(废旧)", rzSj, czyDm, 
/* 972:729 */                   czyPwd);
/* 973:730 */                 System.out.println("[INFO] 认证通过(废旧):" + 
/* 974:731 */                   nsrsbh + "," + 
/* 975:732 */                   tmpFpDklMxDataBean.getFpdm() + 
/* 976:733 */                   "-" + 
/* 977:734 */                   tmpFpDklMxDataBean.getFphm() + 
/* 978:735 */                   "," + rzSj + "(" + ulms + "ms)");
/* 979:736 */                 return result_xml;
/* 980:    */               }
/* 981:    */               String rtn_fpse;
/* 982:    */               String rtn_fpje;
/* 983:    */               SimpleDateFormat sdf;
/* 984:    */               java.util.Date sj;
/* 985:    */               double se;
/* 986:    */               GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* 987:    */               String err_subType;
/* 988:    */               CmpHandler cmpHandler;
/* 989:    */               java.sql.Date rdDate;
/* 990:    */               String rddate;
/* 991:    */               int i_err_no;
/* 992:    */               int save_Code;
/* 993:    */               int rzjg;
/* 994:    */               int wxyy;
/* 995:    */               String jmjip;
/* 996:    */               JmHandler curJmHandler;
/* 997:    */               String rzSj;
/* 998:    */               int jmStatus;
/* 999:    */               String mw4;
/* :00:    */               String mw3;
/* :01:    */               String mw2;
/* :02:    */               String mw1;
/* :03:    */               String fpid;
/* :04:    */               String fpmw;
/* :05:    */               int i_validDate;
/* :06:    */               String active;
/* :07:    */               WsrzQyUserManageCmdBean curCzyDB;
/* :08:737 */               if (fpzl.equals("P1"))
/* :09:    */               {
/* :10:738 */                 result_xml = dispXmlMessage(nsrsbh, "1002", 
/* :11:739 */                   "解密成功，比对正确(普通)", rzSj, czyDm, 
/* :12:740 */                   czyPwd);
/* :13:741 */                 System.out.println("[INFO] 认证通过(普通):" + 
/* :14:742 */                   nsrsbh + "," + 
/* :15:743 */                   tmpFpDklMxDataBean.getFpdm() + 
/* :16:744 */                   "-" + 
/* :17:745 */                   tmpFpDklMxDataBean.getFphm() + 
/* :18:746 */                   "," + rzSj + "(" + ulms + "ms)");
/* :19:747 */                 return result_xml;
/* :20:    */               }
/* :21:    */             }
/* :22:    */             else
/* :23:    */             {
/* :24:    */               double se;
/* :25:    */               String err_subType;
/* :26:    */               CmpHandler cmpHandler;
/* :27:    */               java.sql.Date rdDate;
/* :28:    */               String rddate;
/* :29:    */               int i_err_no;
/* :30:    */               int rzjg;
/* :31:    */               int wxyy;
/* :32:    */               String jmjip;
/* :33:    */               JmHandler curJmHandler;
/* :34:    */               int jmStatus;
/* :35:    */               String mw4;
/* :36:    */               String mw3;
/* :37:    */               String mw2;
/* :38:    */               String mw1;
/* :39:    */               String fpid;
/* :40:    */               String fpmw;
/* :41:    */               int i_validDate;
/* :42:    */               String active;
/* :43:    */               WsrzQyUserManageCmdBean curCzyDB;
/* :44:751 */               System.out.println("[INFO] 存库出错(" + save_Code + 
/* :45:752 */                 "): " + nsrsbh + "," + 
/* :46:753 */                 tmpFpDklMxDataBean.getFpdm() + "-" + 
/* :47:754 */                 tmpFpDklMxDataBean.getFphm() + "(" + ulms + 
/* :48:755 */                 "ms)");
/* :49:    */             }
/* :50:756 */             if (save_Code == 1)
/* :51:    */             {
/* :52:757 */               save_Code = 0;
/* :53:    */             }
/* :54:758 */             else if (save_Code == 2)
/* :55:    */             {
/* :56:759 */               rzSj = tmpFpDklMxDataBean.getDs_swjg_dm();
/* :57:760 */               String rtn_fpje = Double.toString(jmFpData
/* :58:761 */                 .getFp_je());
/* :59:762 */               String rtn_fpse = Double.toString(jmFpData
/* :60:763 */                 .getFp_se());
/* :61:    */               
/* :62:765 */               rzSj = rzSj + " " + rtn_fpje + " " + rtn_fpse + " " + 
/* :63:766 */                 jmFpData.getFp_dm() + " " + 
/* :64:767 */                 jmFpData.getFp_hm();
/* :65:768 */               save_Code = -3;
/* :66:769 */               if (fpzl.equals("YB"))
/* :67:    */               {
/* :68:772 */                 if (security)
/* :69:    */                 {
/* :70:773 */                   result_xml = dispXmlMessage(nsrsbh, "650", 
/* :71:774 */                     "重复认证(增值税发票)", rzSj, czyDm, czyPwd);
/* :72:775 */                   return result_xml;
/* :73:    */                 }
/* :74:    */                 String rtn_fpse;
/* :75:    */                 String rtn_fpje;
/* :76:    */                 double se;
/* :77:    */                 GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* :78:    */                 String err_subType;
/* :79:    */                 CmpHandler cmpHandler;
/* :80:    */                 java.sql.Date rdDate;
/* :81:    */                 String rddate;
/* :82:    */                 int i_err_no;
/* :83:    */                 int save_Code;
/* :84:    */                 int rzjg;
/* :85:    */                 int wxyy;
/* :86:    */                 String jmjip;
/* :87:    */                 JmHandler curJmHandler;
/* :88:    */                 String rzSj;
/* :89:    */                 int jmStatus;
/* :90:    */                 String mw4;
/* :91:    */                 String mw3;
/* :92:    */                 String mw2;
/* :93:    */                 String mw1;
/* :94:    */                 String fpid;
/* :95:    */                 String fpmw;
/* :96:    */                 int i_validDate;
/* :97:    */                 String active;
/* :98:    */                 WsrzQyUserManageCmdBean curCzyDB;
/* :99:777 */                 result_xml = dispXmlMessage(nsrsbh, "0", 
/* ;00:778 */                   "重复认证(增值税发票)", rzSj, czyDm, czyPwd);
/* ;01:779 */                 return result_xml;
/* ;02:    */               }
/* ;03:    */               String rtn_fpse;
/* ;04:    */               String rtn_fpje;
/* ;05:    */               double se;
/* ;06:    */               GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* ;07:    */               String err_subType;
/* ;08:    */               CmpHandler cmpHandler;
/* ;09:    */               java.sql.Date rdDate;
/* ;10:    */               String rddate;
/* ;11:    */               int i_err_no;
/* ;12:    */               int save_Code;
/* ;13:    */               int rzjg;
/* ;14:    */               int wxyy;
/* ;15:    */               String jmjip;
/* ;16:    */               JmHandler curJmHandler;
/* ;17:    */               String rzSj;
/* ;18:    */               int jmStatus;
/* ;19:    */               String mw4;
/* ;20:    */               String mw3;
/* ;21:    */               String mw2;
/* ;22:    */               String mw1;
/* ;23:    */               String fpid;
/* ;24:    */               String fpmw;
/* ;25:    */               int i_validDate;
/* ;26:    */               String active;
/* ;27:    */               WsrzQyUserManageCmdBean curCzyDB;
/* ;28:784 */               if (fpzl.equals("FJ"))
/* ;29:    */               {
/* ;30:785 */                 result_xml = dispXmlMessage(nsrsbh, "1100", 
/* ;31:786 */                   "重复认证(废旧物资发票)", rzSj, czyDm, czyPwd);
/* ;32:787 */                 System.out.println("[INFO] 重复认证(废旧):" + nsrsbh + 
/* ;33:788 */                   ", " + rzSj + "(" + ulms + "ms)");
/* ;34:789 */                 return result_xml;
/* ;35:    */               }
/* ;36:    */               String rtn_fpse;
/* ;37:    */               String rtn_fpje;
/* ;38:    */               double se;
/* ;39:    */               GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* ;40:    */               String err_subType;
/* ;41:    */               CmpHandler cmpHandler;
/* ;42:    */               java.sql.Date rdDate;
/* ;43:    */               String rddate;
/* ;44:    */               int i_err_no;
/* ;45:    */               int save_Code;
/* ;46:    */               int rzjg;
/* ;47:    */               int wxyy;
/* ;48:    */               String jmjip;
/* ;49:    */               JmHandler curJmHandler;
/* ;50:    */               String rzSj;
/* ;51:    */               int jmStatus;
/* ;52:    */               String mw4;
/* ;53:    */               String mw3;
/* ;54:    */               String mw2;
/* ;55:    */               String mw1;
/* ;56:    */               String fpid;
/* ;57:    */               String fpmw;
/* ;58:    */               int i_validDate;
/* ;59:    */               String active;
/* ;60:    */               WsrzQyUserManageCmdBean curCzyDB;
/* ;61:790 */               if (fpzl.equals("P1"))
/* ;62:    */               {
/* ;63:791 */                 result_xml = dispXmlMessage(nsrsbh, "1200", 
/* ;64:792 */                   " 重复认证(普通发票)", rzSj, czyDm, czyPwd);
/* ;65:793 */                 System.out.println("[INFO] 重复认证(普通):" + nsrsbh + 
/* ;66:794 */                   ", " + rzSj + "(" + ulms + "ms)");
/* ;67:795 */                 return result_xml;
/* ;68:    */               }
/* ;69:    */             }
/* ;70:    */             else
/* ;71:    */             {
/* ;72:    */               double se;
/* ;73:    */               GSRzFpdklMxDataBean tmpFpDklMxDataBean;
/* ;74:    */               CmpHandler cmpHandler;
/* ;75:    */               java.sql.Date rdDate;
/* ;76:    */               String rddate;
/* ;77:    */               int i_err_no;
/* ;78:    */               int save_Code;
/* ;79:    */               int rzjg;
/* ;80:    */               int wxyy;
/* ;81:    */               String jmjip;
/* ;82:    */               JmHandler curJmHandler;
/* ;83:    */               int jmStatus;
/* ;84:    */               String mw4;
/* ;85:    */               String mw3;
/* ;86:    */               String mw2;
/* ;87:    */               String mw1;
/* ;88:    */               String fpid;
/* ;89:    */               String fpmw;
/* ;90:    */               int i_validDate;
/* ;91:    */               String active;
/* ;92:    */               WsrzQyUserManageCmdBean curCzyDB;
/* ;93:797 */               if (save_Code == 3) {
/* ;94:798 */                 save_Code = -1;
/* ;95:    */               }
/* ;96:    */             }
/* ;97:    */           }
/* ;98:    */           else
/* ;99:    */           {
/* <00:800 */             java.sql.Date sj = null;
/* <01:801 */             sj = new java.sql.Date(System.currentTimeMillis());
/* <02:802 */             SimpleDateFormat sdf = new SimpleDateFormat(
/* <03:803 */               "yyyy-MM-dd HH:mm:ss");
/* <04:804 */             String rSj = sdf.format(sj);
/* <05:    */             
/* <06:806 */             String rtn_fpje = Double.toString(jmFpData.getFp_je());
/* <07:807 */             String rtn_fpse = Double.toString(jmFpData.getFp_se());
/* <08:809 */             if (rtn_fpje != null) {
/* <09:810 */               rSj = rSj + " " + rtn_fpje + " " + rtn_fpse;
/* <10:    */             }
/* <11:812 */             if (err_subType.equals("1"))
/* <12:    */             {
/* <13:813 */               result_xml = dispXmlMessage(nsrsbh, "590", 
/* <14:814 */                 "解密成功，但比对不正确", rzSj, czyDm, czyPwd);
/* <15:815 */               return result_xml;
/* <16:    */             }
/* <17:    */             String rtn_fpse;
/* <18:    */             String rtn_fpje;
/* <19:    */             String rSj;
/* <20:    */             SimpleDateFormat sdf;
/* <21:    */             java.sql.Date sj;
/* <22:    */             String err_subType;
/* <23:    */             CmpHandler cmpHandler;
/* <24:    */             java.sql.Date rdDate;
/* <25:    */             String rddate;
/* <26:    */             int i_err_no;
/* <27:    */             int save_Code;
/* <28:    */             int rzjg;
/* <29:    */             int wxyy;
/* <30:    */             String jmjip;
/* <31:    */             JmHandler curJmHandler;
/* <32:    */             String rzSj;
/* <33:    */             int jmStatus;
/* <34:    */             String mw4;
/* <35:    */             String mw3;
/* <36:    */             String mw2;
/* <37:    */             String mw1;
/* <38:    */             String fpid;
/* <39:    */             String fpmw;
/* <40:    */             int i_validDate;
/* <41:    */             String active;
/* <42:    */             WsrzQyUserManageCmdBean curCzyDB;
/* <43:817 */             if (err_subType.equals("2"))
/* <44:    */             {
/* <45:818 */               result_xml = dispXmlMessage(nsrsbh, "600", 
/* <46:819 */                 "解密成功，但比对不正确", rzSj, czyDm, czyPwd);
/* <47:820 */               return result_xml;
/* <48:    */             }
/* <49:    */             String rtn_fpse;
/* <50:    */             String rtn_fpje;
/* <51:    */             String rSj;
/* <52:    */             SimpleDateFormat sdf;
/* <53:    */             java.sql.Date sj;
/* <54:    */             String err_subType;
/* <55:    */             CmpHandler cmpHandler;
/* <56:    */             java.sql.Date rdDate;
/* <57:    */             String rddate;
/* <58:    */             int i_err_no;
/* <59:    */             int wxyy;
/* <60:    */             String jmjip;
/* <61:    */             JmHandler curJmHandler;
/* <62:    */             String rzSj;
/* <63:    */             int jmStatus;
/* <64:    */             String mw4;
/* <65:    */             String mw3;
/* <66:    */             String mw2;
/* <67:    */             String mw1;
/* <68:    */             String fpid;
/* <69:    */             String fpmw;
/* <70:    */             int i_validDate;
/* <71:    */             String active;
/* <72:    */             WsrzQyUserManageCmdBean curCzyDB;
/* <73:822 */             System.out.println("[INFO] 认证未通过:" + nsrsbh + "," + 
/* <74:823 */               inFpData.getFp_dm() + "-" + 
/* <75:824 */               inFpData.getFp_hm() + "," + rzSj + "(" + ulms + 
/* <76:825 */               "ms)");
/* <77:    */           }
/* <78:827 */           if (save_Code < 0) {
/* <79:828 */             throw new SQLException("[WARN] save error");
/* <80:    */           }
/* <81:831 */           if ((rzjg == 0) && (save_Code != 0))
/* <82:    */           {
/* <83:832 */             System.out.println("[WARN] 700保存数据失败。");
/* <84:833 */             result_xml = dispXmlMessage(nsrsbh, "700", 
/* <85:834 */               "数据库操作异常，请重新认证！", getCurDateTime(), czyDm, 
/* <86:835 */               czyPwd);
/* <87:836 */             return result_xml;
/* <88:    */           }
/* <89:    */         case 400: 
/* <90:    */           int i_err_no;
/* <91:    */           int save_Code;
/* <92:    */           String jmjip;
/* <93:    */           JmHandler curJmHandler;
/* <94:    */           String rzSj;
/* <95:    */           int jmStatus;
/* <96:    */           String mw4;
/* <97:    */           String mw3;
/* <98:    */           String mw2;
/* <99:    */           String mw1;
/* =00:    */           String fpid;
/* =01:    */           String fpmw;
/* =02:    */           int i_validDate;
/* =03:    */           String active;
/* =04:    */           WsrzQyUserManageCmdBean curCzyDB;
/* =05:840 */           int wxyy = 128;
/* =06:841 */           int rzjg = 5;
/* =07:842 */           result_xml = dispXmlMessage(nsrsbh, "400", 
/* =08:843 */             "提交的纳税人识别号非法，请重新提交认证！", getCurDateTime(), czyDm, 
/* =09:844 */             czyPwd);
/* =10:845 */           return result_xml;
/* =11:    */         case 403: 
/* =12:    */           int i_err_no;
/* =13:    */           int save_Code;
/* =14:    */           int rzjg;
/* =15:    */           int wxyy;
/* =16:    */           String jmjip;
/* =17:    */           JmHandler curJmHandler;
/* =18:    */           String rzSj;
/* =19:    */           int jmStatus;
/* =20:    */           String mw4;
/* =21:    */           String mw3;
/* =22:    */           String mw2;
/* =23:    */           String mw1;
/* =24:    */           String fpid;
/* =25:    */           String fpmw;
/* =26:    */           int i_validDate;
/* =27:    */           String active;
/* =28:    */           WsrzQyUserManageCmdBean curCzyDB;
/* =29:848 */           System.out.println("[INFO] 当前认证人与发票的购方、销方均无关:" + nsrsbh + 
/* =30:849 */             "," + inFpData.getFp_dm() + "-" + 
/* =31:850 */             inFpData.getFp_hm());
/* =32:    */           
/* =33:852 */           result_xml = dispXmlMessage(nsrsbh, "403", 
/* =34:853 */             "当前认证人与发票的购方、销方均无关，不能进行认证！", getCurDateTime(), 
/* =35:854 */             czyDm, czyPwd);
/* =36:    */           
/* =37:856 */           return result_xml;
/* =38:    */         }
/* =39:    */         int i_err_no;
/* =40:    */         int save_Code;
/* =41:    */         int rzjg;
/* =42:    */         int wxyy;
/* =43:    */         String jmjip;
/* =44:    */         JmHandler curJmHandler;
/* =45:    */         String rzSj;
/* =46:    */         int jmStatus;
/* =47:    */         String mw4;
/* =48:    */         String mw3;
/* =49:    */         String mw2;
/* =50:    */         String mw1;
/* =51:    */         String fpid;
/* =52:    */         String fpmw;
/* =53:    */         int i_validDate;
/* =54:    */         String active;
/* =55:    */         WsrzQyUserManageCmdBean curCzyDB;
/* =56:859 */         if (((i_err_no >= 1) && (i_err_no <= 255)) || (i_err_no == -1))
/* =57:    */         {
/* =58:860 */           wxyy = 128;
/* =59:861 */           rzjg = 5;
/* =60:862 */           System.out.println("1-255:save exception info");
/* =61:863 */           result_xml = dispXmlMessage(nsrsbh, 
/* =62:864 */             String.valueOf(255), "提交的密文有误，请重新提交认证！", 
/* =63:865 */             getCurDateTime(), czyDm, czyPwd);
/* =64:    */           
/* =65:    */ 
/* =66:868 */           System.out.println("[WARN] " + i_err_no + "无法解密：纳税号:" + 
/* =67:869 */             nsrsbh + ", 操作员:" + czyDm + ", 认证时间:" + 
/* =68:870 */             getCurDateTime());
/* =69:871 */           return result_xml;
/* =70:    */         }
/* =71:    */         break;
/* =72:    */       case 530: 
/* =73:    */         String jmjip;
/* =74:    */         JmHandler curJmHandler;
/* =75:    */         String rzSj;
/* =76:    */         int jmStatus;
/* =77:    */         String mw4;
/* =78:    */         String mw3;
/* =79:    */         String mw2;
/* =80:    */         String mw1;
/* =81:    */         String fpid;
/* =82:    */         String fpmw;
/* =83:    */         int i_validDate;
/* =84:    */         String active;
/* =85:    */         WsrzQyUserManageCmdBean curCzyDB;
/* =86:877 */         System.out.println("[ERROR] 530没有可用的解密工作站");
/* =87:878 */         result_xml = dispXmlMessage(nsrsbh, "530", "系统忙，请稍候再试...", 
/* =88:879 */           getCurDateTime(), czyDm, czyPwd);
/* =89:880 */         return result_xml;
/* =90:    */       case 540: 
/* =91:    */         String jmjip;
/* =92:    */         JmHandler curJmHandler;
/* =93:    */         String rzSj;
/* =94:    */         int jmStatus;
/* =95:    */         String mw4;
/* =96:    */         String mw3;
/* =97:    */         String mw2;
/* =98:    */         String mw1;
/* =99:    */         String fpid;
/* >00:    */         String fpmw;
/* >01:    */         int i_validDate;
/* >02:    */         String active;
/* >03:    */         WsrzQyUserManageCmdBean curCzyDB;
/* >04:883 */         System.out.println("[ERROR] 540连接解密工作站失败");
/* >05:884 */         result_xml = dispXmlMessage(nsrsbh, "540", "连接解密工作站失败，请重新提交数据", 
/* >06:885 */           getCurDateTime(), czyDm, czyPwd);
/* >07:886 */         return result_xml;
/* >08:    */       case 550: 
/* >09:    */         String jmjip;
/* >10:    */         JmHandler curJmHandler;
/* >11:    */         String rzSj;
/* >12:    */         int jmStatus;
/* >13:    */         String mw4;
/* >14:    */         String mw3;
/* >15:    */         String mw2;
/* >16:    */         String mw1;
/* >17:    */         String fpid;
/* >18:    */         String fpmw;
/* >19:    */         int i_validDate;
/* >20:    */         String active;
/* >21:    */         WsrzQyUserManageCmdBean curCzyDB;
/* >22:889 */         System.out.println("[ERROR] 550无法读取返回的解密数据");
/* >23:890 */         result_xml = dispXmlMessage(nsrsbh, "550", "读取数据失败，请重新提交数据", 
/* >24:891 */           getCurDateTime(), czyDm, czyPwd);
/* >25:892 */         return result_xml;
/* >26:    */       default: 
/* >27:    */         String jmjip;
/* >28:    */         JmHandler curJmHandler;
/* >29:    */         String rzSj;
/* >30:    */         int jmStatus;
/* >31:    */         String mw4;
/* >32:    */         String mw3;
/* >33:    */         String mw2;
/* >34:    */         String mw1;
/* >35:    */         String fpid;
/* >36:    */         String fpmw;
/* >37:    */         int i_validDate;
/* >38:    */         String active;
/* >39:    */         WsrzQyUserManageCmdBean curCzyDB;
/* >40:895 */         System.out.println("[ERROR] " + jmStatus + "未知错误");
/* >41:    */       }
/* >42:    */     }
/* >43:    */     catch (SQLException e)
/* >44:    */     {
/* >45:899 */       e.printStackTrace();
/* >46:900 */       result_xml = dispXmlMessage(nsrsbh, "700", "数据库操作异常，请重新认证！", 
/* >47:901 */         getCurDateTime(), czyDm, czyPwd);
/* >48:902 */       System.out.println("[info] 数据库操作异常 " + e);
/* >49:    */       WsrzQyUserManageCmdBean curCzyDB;
/* >50:903 */       return result_xml;
/* >51:    */     }
/* >52:    */     catch (Exception e)
/* >53:    */     {
/* >54:    */       String str1;
/* >55:905 */       e.printStackTrace();
/* >56:906 */       System.out.println("[ERROR] 其它异常, 纳税号:" + nsrsbh + " 异常 " + 
/* >57:907 */         e.toString());
/* >58:908 */       result_xml = dispXmlMessage(nsrsbh, "800", "发生其它异常", 
/* >59:909 */         getCurDateTime(), czyDm, czyPwd);
/* >60:    */       WsrzQyUserManageCmdBean curCzyDB;
/* >61:910 */       return result_xml;
/* >62:    */     }
/* >63:    */     finally
/* >64:    */     {
/* >65:    */       try
/* >66:    */       {
/* >67:913 */         if ((conn != null) && (!conn.isClosed()))
/* >68:    */         {
/* >69:914 */           conn.close();
/* >70:915 */           conn = null;
/* >71:    */         }
/* >72:    */       }
/* >73:    */       catch (SQLException se)
/* >74:    */       {
/* >75:918 */         System.out.println(se.getMessage());
/* >76:    */       }
/* >77:    */     }
/* >78:    */     try
/* >79:    */     {
/* >80:    */       WsrzQyUserManageCmdBean curCzyDB;
/* >81:913 */       if ((conn != null) && (!conn.isClosed()))
/* >82:    */       {
/* >83:914 */         conn.close();
/* >84:915 */         conn = null;
/* >85:    */       }
/* >86:    */     }
/* >87:    */     catch (SQLException se)
/* >88:    */     {
/* >89:918 */       System.out.println(se.getMessage());
/* >90:    */     }
/* >91:    */     WsrzQyUserManageCmdBean curCzyDB;
/* >92:922 */     return result_xml;
/* >93:    */   }
/* >94:    */ }


/* Location:           D:\htjs\document\wsrz\WsrzEjbInf\
 * Qualified Name:     WsrzEjbInterface.hnWsrzInterfaceBean
 * JD-Core Version:    0.7.0.1
 */